/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

body
{
	/* Font */
	/* Emoji fonts are added to visualise them nicely in Internet Explorer. */
	font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-size: 12px;

	/* Text color */
	color: #333;

	/* Remove the background color to make it transparent. */
	background-color: #fff;

	margin: 20px;
}

.cke_editable
{
	font-size: 13px;
	line-height: 1.6;

	/* Fix for missing scrollbars with RTL texts. (#10488) */
	word-wrap: break-word;
}

blockquote
{
	font-style: italic;
	font-family: Georgia, Times, "Times New Roman", serif;
	padding: 2px 0;
	border-style: solid;
	border-color: #ccc;
	border-width: 0;
}

.cke_contents_ltr blockquote
{
	padding-left: 20px;
	padding-right: 8px;
	border-left-width: 5px;
}

.cke_contents_rtl blockquote
{
	padding-left: 8px;
	padding-right: 20px;
	border-right-width: 5px;
}

a
{
	color: #0782C1;
}

ol,ul,dl
{
	/* IE7: reset rtl list margin. (#7334) */
	*margin-right: 0px;
	/* Preserved spaces for list items with text direction different than the list. (#6249,#8049)*/
	padding: 0 40px;
}

h1,h2,h3,h4,h5,h6
{
	font-weight: normal;
	line-height: 1.2;
}

hr
{
	border: 0px;
	border-top: 1px solid #ccc;
}

img.right
{
	border: 1px solid #ccc;
	float: right;
	margin-left: 15px;
	padding: 5px;
}

img.left
{
	border: 1px solid #ccc;
	float: left;
	margin-right: 15px;
	padding: 5px;
}

pre
{
	white-space: pre-wrap; /* CSS 2.1 */
	word-wrap: break-word; /* IE7 */
	-moz-tab-size: 4;
	tab-size: 4;
}

.marker
{
	background-color: Yellow;
}

span[lang]
{
	font-style: italic;
}

figure
{
	text-align: center;
	outline: solid 1px #ccc;
	background: rgba(0,0,0,0.05);
	padding: 10px;
	margin: 10px 20px;
	display: inline-block;
}

figure > figcaption
{
	text-align: center;
	display: block; /* For IE8 */
}

a > img {
	padding: 1px;
	margin: 1px;
	border: none;
	outline: 1px solid #0782C1;
}

/* Widget Styles */
.code-featured
{
	border: 5px solid red;
}

.math-featured
{
	padding: 20px;
	box-shadow: 0 0 2px rgba(200, 0, 0, 1);
	background-color: rgba(255, 0, 0, 0.05);
	margin: 10px;
}

.image-clean
{
	border: 0;
	background: none;
	padding: 0;
}

.image-clean > figcaption
{
	font-size: .9em;
	text-align: right;
}

.image-grayscale
{
	background-color: white;
	color: #666;
}

.image-grayscale img, img.image-grayscale
{
	filter: grayscale(100%);
}

.embed-240p
{
	max-width: 426px;
	max-height: 240px;
	margin:0 auto;
}

.embed-360p
{
	max-width: 640px;
	max-height: 360px;
	margin:0 auto;
}

.embed-480p
{
	max-width: 854px;
	max-height: 480px;
	margin:0 auto;
}

.embed-720p
{
	max-width: 1280px;
	max-height: 720px;
	margin:0 auto;
}

.embed-1080p
{
	max-width: 1920px;
	max-height: 1080px;
	margin:0 auto;
}


/* 以下为覆盖样式，使编辑器尽量保持与前台页面显示一致 */

body,
body.cke_editable {
	height: 100%;
	font-size: 16px;
	font-family: -apple-system, BlinkMacSystemFont, Roboto, "Open Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	line-height: 1.5;
	-webkit-font-smoothing: subpixel-antialiased;
	word-wrap: break-word;
	-ms-word-wrap: break-word;
}

h1 {
	font-size: 1.75em;
	line-height: 1.357;
	font-weight: 700;
}

h2 {
	font-size: 1.6em;
	line-height: 1.333;
	font-weight: 700;
}

h3 {
	font-size: 1.4em;
	line-height: 1.333;
	font-weight: 700;
}

h4 {
	font-size: 1.2em;
	line-height: 1.333;
	font-weight: 700;
}

pre {
	white-space: pre;
	word-wrap: normal;
	-ms-word-wrap: normal;
	position: relative;
	font-size: 0.8125em;
	line-height: 1.45;
	margin: 1em 0;
}

pre code {
	border-radius: 0;
}

code {
	margin: 0;
	padding: .28em .4em .2em;
	color: #c7254e;
	background: #f9f2f4;
	font-size: 0.9063em;
	border-radius: 3px;
}

h1 code,
h2 code,
h3 code,
h4 code,
pre code {
	font-size: inherit;
}

p {
	margin: 1.5em 0;
}

a {
	color: #333;
	font-weight: 500;
	text-decoration: underline;
}

img {
	height: auto !important;
	max-width: 100%;
	border-color: #ccc;
}

img.cke_widget_mask {
    height: 100% !important;
    z-index: 3;
}

blockquote,
.cke_editable blockquote {
	font-style: normal;
	font-family: inherit;
	margin: 1.5em 0;
	padding: 0.5em 1em;
	border-left: solid 8px #ccc;
	background: #f5f5f5;
}

blockquote p:first-child,
.cke_editable blockquote p:first-child {
	margin-top: 0.5em;
}

blockquote p:last-child,
.cke_editable blockquote p:last-child {
	margin-bottom: 0.5em;
}

h1,
h2,
h3,
h4 {
	margin: 1.5em 0;
}

h2 {
	margin-bottom: 1.2em;
	padding-bottom: 0.3em;
	border-bottom: 1px solid #e6e6e6;
}

ul {
	padding: 0;
	margin: 1.5em;
}

ol {
	padding: 0;
	margin: 1.5em;
}

ul ul,
ul ol,
ol ol,
ol ul {
	margin: 0 1.2em;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	border-color: #c0c0c0;
	border-style: solid;
	word-break: break-word;
}

table th,
table td {
	border-color: #c0c0c0;
	padding: 3px 10px;
}

/* 代码高亮行号样式 */
.hljsln {
	display: block;
	margin-left: 2.4em;
	padding-left: 0.7em !important;
}
.hljsln::-webkit-scrollbar {
	height: 15px;
}
.hljsln::-webkit-scrollbar-thumb {
	background: #666;
}
.hljsln::-webkit-scrollbar-thumb:hover {
	background: #797979;
}
.hljsln::-webkit-scrollbar-thumb:active {
	background: #949494;
}
.hljsln .ln-bg {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 2.4em;
	height: 100%;
	background: #333;
}
.hljsln .ln-num {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	position: absolute;
	z-index: 2;
	left: 0;
	width: 2.4em;
	height: 1em;
	text-align: center;
	display: inline-block;
}
.hljsln .ln-num::before {
	color: #777;
	font-style: normal;
	font-weight: normal;
	content: attr(data-num);
}
.hljsln .ln-eof {
	display: inline-block;
}
